package com.jgp.security.secmodel;

import com.jgp.common.persistence.UUIDModel;

import javax.persistence.*;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019-11-12
 */
@Entity
@Table(name = "sec_give_power")
public class SecGivePower extends UUIDModel {
    /**
     * 权限所有者
     */
    @Column(name="provider")
    private String provider;
    /**
     * 权限所有者类型
     */
    @Column(name="provider_type")
    @Enumerated(EnumType.STRING)
    private DataPowerType providerType;
    /**
     * 权限接收者
     */
    @Column(name="receiver")
    private String receiver;
    /**
     * 权限接收者类型
     */
    @Column(name="receiver_type")
    @Enumerated(EnumType.STRING)
    private DataPowerType receiverType;
    
    /**
     * 操作类型 READ WRITE
     */
    @Column(name="operator_type")
    private OperatorType operatorType;
    
    
    public String getProvider() {
        return provider;
    }
    
    public void setProvider(String provider) {
        this.provider = provider;
    }
    
    public DataPowerType getProviderType() {
        return providerType;
    }
    
    public void setProviderType(DataPowerType providerType) {
        this.providerType = providerType;
    }
    
    public String getReceiver() {
        return receiver;
    }
    
    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }
    
    public DataPowerType getReceiverType() {
        return receiverType;
    }
    
    public void setReceiverType(DataPowerType receiverType) {
        this.receiverType = receiverType;
    }
    
    public OperatorType getOperatorType() {
        return operatorType;
    }
    
    public void setOperatorType(OperatorType operatorType) {
        this.operatorType = operatorType;
    }
}
